<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>RegistryDLL: C:/Users/ojanhenr/winPeliSVN/winPeli/snake.h lähdekooditiedosto</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generoinut Doxygen 1.7.1 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Pääsivu</span></a></li>
      <li><a href="namespaces.html"><span>Nimiavaruudet</span></a></li>
      <li><a href="annotated.html"><span>Luokat</span></a></li>
      <li class="current"><a href="files.html"><span>Tiedostot</span></a></li>
    </ul>
  </div>
  <div class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>Tiedostolista</span></a></li>
      <li><a href="globals.html"><span>Tiedoston&nbsp;jäsenet</span></a></li>
    </ul>
  </div>
<div class="header">
  <div class="headertitle">
<h1>C:/Users/ojanhenr/winPeliSVN/winPeli/snake.h</h1>  </div>
</div>
<div class="contents">
<a href="snake_8h.html">Siirry tämän tiedoston dokumentaatioon.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00008"></a>00008 <span class="preprocessor">#ifndef SNAKE_H</span>
<a name="l00009"></a>00009 <span class="preprocessor"></span><span class="preprocessor">#define SNAKE_H</span>
<a name="l00010"></a>00010 <span class="preprocessor"></span>
<a name="l00011"></a>00011 <span class="preprocessor">#include &lt;windows.h&gt;</span>
<a name="l00012"></a>00012 <span class="preprocessor">#include &quot;<a class="code" href="block_8h.html">block.h</a>&quot;</span>
<a name="l00013"></a>00013 
<a name="l00018"></a><a class="code" href="class_snake.html">00018</a> <span class="keyword">class </span><a class="code" href="class_snake.html">Snake</a>
<a name="l00019"></a>00019 {
<a name="l00020"></a>00020 <span class="keyword">public</span>:
<a name="l00026"></a>00026         <a class="code" href="class_snake.html#a32b3531dd5974b8d157fcbb84b490e52">Snake</a>(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y);
<a name="l00027"></a>00027     
<a name="l00031"></a>00031         <a class="code" href="class_snake.html#a941fbaad96ee33ca3a7c30c28ca44ef8">~Snake</a>();
<a name="l00032"></a>00032     
<a name="l00038"></a>00038         <span class="keywordtype">void</span> <a class="code" href="class_snake.html#a70633b60e38c1b03358e9292a32fa3c7">move</a>(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y);
<a name="l00039"></a>00039     
<a name="l00045"></a>00045         <span class="keywordtype">bool</span> <a class="code" href="class_snake.html#a8251b1fc68c632af86eef620256aec1f">collision</a>(<a class="code" href="class_block.html">Block</a>* block);
<a name="l00046"></a>00046     
<a name="l00050"></a>00050         <span class="keywordtype">void</span> <a class="code" href="class_snake.html#a1e6804b6419b1f2da16c3e36be6375d9">addLength</a>(<span class="keywordtype">void</span>);
<a name="l00051"></a>00051     
<a name="l00060"></a>00060         <span class="keywordtype">bool</span> <a class="code" href="class_snake.html#af79498343f5f511cfb86dbe7048a1f85">outsideRectangle</a>(<span class="keywordtype">int</span> x1, <span class="keywordtype">int</span> y1, <span class="keywordtype">int</span> x2, <span class="keywordtype">int</span> y2);
<a name="l00061"></a>00061     
<a name="l00066"></a>00066         <span class="keywordtype">bool</span> <a class="code" href="class_snake.html#ad9b10a9f3914b7792cd4965b3749ff0b">collisionWithItself</a>(<span class="keywordtype">void</span>);
<a name="l00067"></a>00067     
<a name="l00072"></a>00072         <span class="keywordtype">int</span> <a class="code" href="class_snake.html#a2965f55d60072c86491838576632dff7">getX</a>(<span class="keywordtype">void</span>);
<a name="l00073"></a>00073     
<a name="l00078"></a>00078         <span class="keywordtype">int</span> <a class="code" href="class_snake.html#aa7866f47e038de296484caaea8c8f023">getY</a>(<span class="keywordtype">void</span>);
<a name="l00079"></a>00079     
<a name="l00084"></a>00084         <span class="keywordtype">void</span> <a class="code" href="class_snake.html#aa34f490538ed582a33c9aded6c226a7f">setDirection</a>(<span class="keywordtype">int</span> dir);
<a name="l00085"></a>00085     
<a name="l00090"></a>00090         <span class="keywordtype">int</span> <a class="code" href="class_snake.html#a5519357feed2e856db854db96ba653db">getDirection</a>(<span class="keywordtype">void</span>);
<a name="l00091"></a>00091     
<a name="l00098"></a>00098         <span class="keywordtype">void</span> <a class="code" href="class_snake.html#adac9182b065f945a8ea1114a3d03e284">draw</a>(HDC hdc, <span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y);
<a name="l00099"></a>00099 
<a name="l00100"></a>00100 <span class="keyword">private</span>:
<a name="l00104"></a><a class="code" href="class_snake.html#a1349ccf7f145382b601ac41927f84af4">00104</a>         <span class="keywordtype">int</span> <a class="code" href="class_snake.html#a1349ccf7f145382b601ac41927f84af4">direction</a>;
<a name="l00108"></a><a class="code" href="class_snake.html#aba2f9d9cbf10b4be4887e5bc9612bfde">00108</a>         <span class="keywordtype">int</span> <a class="code" href="class_snake.html#aba2f9d9cbf10b4be4887e5bc9612bfde">length</a>;
<a name="l00112"></a><a class="code" href="class_snake.html#a9b1b4e890de54b0fe8fdff0e9f641612">00112</a>         <a class="code" href="class_block.html">Block</a>* <a class="code" href="class_snake.html#a9b1b4e890de54b0fe8fdff0e9f641612">blocks</a>[100];
<a name="l00113"></a>00113 };
<a name="l00114"></a>00114 
<a name="l00115"></a>00115 <span class="preprocessor">#endif</span>
</pre></div></div>
</div>
<hr class="footer"/><address class="footer"><small>Generoinut projektille RegistryDLL Tue Apr 12 2011 10:05:31 &nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.1 </small></address>
</body>
</html>
